.class public Lcom/waiqin365/lightapp/dailyreport/view/bk;
.super Landroid/widget/BaseAdapter;


# static fields
.field private static d:J


# instance fields
.field public a:Z

.field private b:Landroid/content/Context;

.field private c:Ljava/util/ArrayList;

.field private e:I

.field private f:Lcom/waiqin365/compons/view/c;

.field private g:Landroid/os/Handler;


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/util/ArrayList;)V
    .locals 1

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    new-instance v0, Lcom/waiqin365/lightapp/dailyreport/view/bl;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/dailyreport/view/bl;-><init>(Lcom/waiqin365/lightapp/dailyreport/view/bk;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bk;->g:Landroid/os/Handler;

    iput-object p1, p0, Lcom/waiqin365/lightapp/dailyreport/view/bk;->b:Landroid/content/Context;

    iput-object p2, p0, Lcom/waiqin365/lightapp/dailyreport/view/bk;->c:Ljava/util/ArrayList;

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/dailyreport/view/bk;I)I
    .locals 0

    iput p1, p0, Lcom/waiqin365/lightapp/dailyreport/view/bk;->e:I

    return p1
.end method

.method static synthetic a()J
    .locals 2

    sget-wide v0, Lcom/waiqin365/lightapp/dailyreport/view/bk;->d:J

    return-wide v0
.end method

.method static synthetic a(J)J
    .locals 0

    sput-wide p0, Lcom/waiqin365/lightapp/dailyreport/view/bk;->d:J

    return-wide p0
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/dailyreport/view/bk;Lcom/waiqin365/compons/view/c;)Lcom/waiqin365/compons/view/c;
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/dailyreport/view/bk;->f:Lcom/waiqin365/compons/view/c;

    return-object p1
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/dailyreport/view/bk;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bk;->c:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/dailyreport/view/bk;Ljava/lang/String;Ljava/lang/String;I)V
    .locals 0

    invoke-direct {p0, p1, p2, p3}, Lcom/waiqin365/lightapp/dailyreport/view/bk;->a(Ljava/lang/String;Ljava/lang/String;I)V

    return-void
.end method

.method private a(Ljava/lang/String;Ljava/lang/String;I)V
    .locals 3

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bk;->a:Z

    new-instance v0, Lcom/waiqin365/lightapp/dailyreport/b/a/s;

    invoke-direct {v0, p1, p2, p3}, Lcom/waiqin365/lightapp/dailyreport/b/a/s;-><init>(Ljava/lang/String;Ljava/lang/String;I)V

    new-instance v1, Lcom/waiqin365/lightapp/dailyreport/b/b;

    iget-object v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/bk;->g:Landroid/os/Handler;

    invoke-direct {v1, v2, v0}, Lcom/waiqin365/lightapp/dailyreport/b/b;-><init>(Landroid/os/Handler;Lcom/waiqin365/lightapp/dailyreport/b/a/a;)V

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/dailyreport/b/b;->start()V

    return-void
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/dailyreport/view/bk;)Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bk;->b:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic c(Lcom/waiqin365/lightapp/dailyreport/view/bk;)I
    .locals 1

    iget v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bk;->e:I

    return v0
.end method

.method static synthetic d(Lcom/waiqin365/lightapp/dailyreport/view/bk;)Lcom/waiqin365/compons/view/c;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bk;->f:Lcom/waiqin365/compons/view/c;

    return-object v0
.end method


# virtual methods
.method public a(Ljava/lang/String;I)V
    .locals 3

    const/4 v2, 0x1

    if-ltz p2, :cond_0

    :try_start_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bk;->c:Ljava/util/ArrayList;

    invoke-virtual {v0, p2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/c/i;

    iget-object v0, v0, Lcom/waiqin365/lightapp/dailyreport/c/i;->a:Ljava/lang/String;

    invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bk;->c:Ljava/util/ArrayList;

    invoke-virtual {v0, p2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/c/i;

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/bk;->c:Ljava/util/ArrayList;

    invoke-virtual {v1, p2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/dailyreport/c/i;

    iget-boolean v1, v1, Lcom/waiqin365/lightapp/dailyreport/c/i;->g:Z

    if-nez v1, :cond_1

    move v1, v2

    :goto_0
    iput-boolean v1, v0, Lcom/waiqin365/lightapp/dailyreport/c/i;->g:Z

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bk;->a:Z

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/dailyreport/view/bk;->notifyDataSetChanged()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :cond_0
    :goto_1
    return-void

    :cond_1
    const/4 v1, 0x0

    goto :goto_0

    :catch_0
    move-exception v0

    goto :goto_1
.end method

.method public a(Ljava/util/ArrayList;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/dailyreport/view/bk;->c:Ljava/util/ArrayList;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/dailyreport/view/bk;->notifyDataSetChanged()V

    return-void
.end method

.method public getCount()I
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bk;->c:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bk;->c:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2

    int-to-long v0, p1

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 7

    const/16 v6, 0x8

    const/4 v5, 0x0

    if-nez p2, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bk;->b:Landroid/content/Context;

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f03010a

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    new-instance v1, Lcom/waiqin365/lightapp/dailyreport/view/bp;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/dailyreport/view/bp;-><init>(Lcom/waiqin365/lightapp/dailyreport/view/bk;)V

    invoke-virtual {p2, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    const v0, 0x7f0c063a

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, v1, Lcom/waiqin365/lightapp/dailyreport/view/bp;->a:Landroid/widget/ImageView;

    const v0, 0x7f0c0058

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/waiqin365/lightapp/dailyreport/view/bp;->b:Landroid/widget/TextView;

    const v0, 0x7f0c063c

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/waiqin365/lightapp/dailyreport/view/bp;->c:Landroid/widget/TextView;

    const v0, 0x7f0c063d

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/waiqin365/lightapp/dailyreport/view/bp;->d:Landroid/widget/TextView;

    const v0, 0x7f0c063b

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/waiqin365/lightapp/dailyreport/view/bp;->e:Landroid/widget/TextView;

    const v0, 0x7f0c005a

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, v1, Lcom/waiqin365/lightapp/dailyreport/view/bp;->f:Landroid/view/View;

    const v0, 0x7f0c063e

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, v1, Lcom/waiqin365/lightapp/dailyreport/view/bp;->g:Landroid/view/View;

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bk;->c:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/c/i;

    iget-object v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/bk;->c:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    add-int/lit8 v2, v2, -0x1

    if-ne p1, v2, :cond_1

    iget-object v2, v1, Lcom/waiqin365/lightapp/dailyreport/view/bp;->f:Landroid/view/View;

    invoke-virtual {v2, v5}, Landroid/view/View;->setVisibility(I)V

    iget-object v2, v1, Lcom/waiqin365/lightapp/dailyreport/view/bp;->g:Landroid/view/View;

    invoke-virtual {v2, v6}, Landroid/view/View;->setVisibility(I)V

    :goto_1
    iget-object v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/bk;->b:Landroid/content/Context;

    iget-object v3, v1, Lcom/waiqin365/lightapp/dailyreport/view/bp;->a:Landroid/widget/ImageView;

    iget-object v4, v0, Lcom/waiqin365/lightapp/dailyreport/c/i;->e:Ljava/lang/String;

    invoke-static {v2, v3, v4}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;Landroid/widget/ImageView;Ljava/lang/String;)V

    iget-object v2, v1, Lcom/waiqin365/lightapp/dailyreport/view/bp;->a:Landroid/widget/ImageView;

    new-instance v3, Lcom/waiqin365/lightapp/dailyreport/view/bm;

    invoke-direct {v3, p0, v0, p1}, Lcom/waiqin365/lightapp/dailyreport/view/bm;-><init>(Lcom/waiqin365/lightapp/dailyreport/view/bk;Lcom/waiqin365/lightapp/dailyreport/c/i;I)V

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v2, v1, Lcom/waiqin365/lightapp/dailyreport/view/bp;->b:Landroid/widget/TextView;

    iget-object v3, v0, Lcom/waiqin365/lightapp/dailyreport/c/i;->b:Ljava/lang/String;

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v2, v1, Lcom/waiqin365/lightapp/dailyreport/view/bp;->c:Landroid/widget/TextView;

    iget-object v3, v0, Lcom/waiqin365/lightapp/dailyreport/c/i;->c:Ljava/lang/String;

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v2, v0, Lcom/waiqin365/lightapp/dailyreport/c/i;->f:Ljava/lang/String;

    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_2

    iget-object v2, v1, Lcom/waiqin365/lightapp/dailyreport/view/bp;->d:Landroid/widget/TextView;

    iget-object v3, v0, Lcom/waiqin365/lightapp/dailyreport/c/i;->f:Ljava/lang/String;

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v2, v1, Lcom/waiqin365/lightapp/dailyreport/view/bp;->d:Landroid/widget/TextView;

    invoke-virtual {v2, v5}, Landroid/widget/TextView;->setVisibility(I)V

    :goto_2
    iget-boolean v2, v0, Lcom/waiqin365/lightapp/dailyreport/c/i;->g:Z

    if-eqz v2, :cond_3

    iget-object v2, v1, Lcom/waiqin365/lightapp/dailyreport/view/bp;->e:Landroid/widget/TextView;

    iget-object v3, p0, Lcom/waiqin365/lightapp/dailyreport/view/bk;->b:Landroid/content/Context;

    const v4, 0x7f0801fa

    invoke-virtual {v3, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v2, v1, Lcom/waiqin365/lightapp/dailyreport/view/bp;->e:Landroid/widget/TextView;

    const-string/jumbo v3, "#cccccc"

    invoke-static {v3}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v2, v1, Lcom/waiqin365/lightapp/dailyreport/view/bp;->e:Landroid/widget/TextView;

    const v3, 0x7f020392

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setBackgroundResource(I)V

    :goto_3
    iget-object v1, v1, Lcom/waiqin365/lightapp/dailyreport/view/bp;->e:Landroid/widget/TextView;

    new-instance v2, Lcom/waiqin365/lightapp/dailyreport/view/bn;

    invoke-direct {v2, p0, p1, v0}, Lcom/waiqin365/lightapp/dailyreport/view/bn;-><init>(Lcom/waiqin365/lightapp/dailyreport/view/bk;ILcom/waiqin365/lightapp/dailyreport/c/i;)V

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-object p2

    :cond_0
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/view/bp;

    move-object v1, v0

    goto/16 :goto_0

    :cond_1
    iget-object v2, v1, Lcom/waiqin365/lightapp/dailyreport/view/bp;->f:Landroid/view/View;

    invoke-virtual {v2, v6}, Landroid/view/View;->setVisibility(I)V

    iget-object v2, v1, Lcom/waiqin365/lightapp/dailyreport/view/bp;->g:Landroid/view/View;

    invoke-virtual {v2, v5}, Landroid/view/View;->setVisibility(I)V

    goto :goto_1

    :cond_2
    iget-object v2, v1, Lcom/waiqin365/lightapp/dailyreport/view/bp;->d:Landroid/widget/TextView;

    invoke-virtual {v2, v6}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_2

    :cond_3
    iget-object v2, v1, Lcom/waiqin365/lightapp/dailyreport/view/bp;->e:Landroid/widget/TextView;

    iget-object v3, p0, Lcom/waiqin365/lightapp/dailyreport/view/bk;->b:Landroid/content/Context;

    const v4, 0x7f0801f9

    invoke-virtual {v3, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v2, v1, Lcom/waiqin365/lightapp/dailyreport/view/bp;->e:Landroid/widget/TextView;

    const-string/jumbo v3, "#ff9008"

    invoke-static {v3}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v2, v1, Lcom/waiqin365/lightapp/dailyreport/view/bp;->e:Landroid/widget/TextView;

    const v3, 0x7f020395

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setBackgroundResource(I)V

    goto :goto_3
.end method
